package com.xxxx.yebserver.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
public class MyException extends RuntimeException{
    private Integer code;
    private String msg;

    public MyException(Integer code,String msg){
        super(msg);
        this.msg = msg;
        this.code = code;
    }
}
